.PHONY: test

var1 := A
var2 := $(var1)
var3 :=

test:
    ifeq ($(var1),$(var2)) # ifeq else endif前不能有tab键
		@echo "var1 == var2"
    else
		@echo "var1 != var2"
    endif
